package com.rms.server.Service;

import com.rms.server.Dao.CityDao;
import com.rms.server.Domain.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CityService {
    @Autowired
    private CityDao cityDao;

    public City findCityByName(String name) {
        return cityDao.findByName(name);
    }

    public City findCityByID(Long ID) {
        return cityDao.findByID(ID);
    }
}
